﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ENG.TeachersDiary
{
  public partial class CtrStudentMark : UserControl
  {
    public CtrStudentMark()
    {
      InitializeComponent();

      cmbMark.ComboBox.SelectedIndex = 0;
    }

    [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)]
    private Model.Student _Student;
    ///<summary>
    /// Sets/gets Student value.
    ///</summary>
    public Model.Student Student
    {
      get
      {
        return (_Student);
      }
      set
      {
        _Student = value;
        lblName.Text = _Student.SurnameName;
      }
    }

    public Model.MarkCode MarkCode
    {
      get
      {
        return cmbMark.SelectedValue;
      }
      set
      {
        cmbMark.SelectedValue = value;
      }
    }
  }
}
